<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <table border="1" width="500" height="500">
        <tr>
            <td>name</td>
            <td>age</td>
            <td>sex</td>
            <td>hobby</td>
        </tr>
        <% for(var i = 0; i < students.length; i++) { %>
        <tr>
            <td><%= students[i].name %></td>
            <td><%= students[i].age %></td>
            <td><%= students[i].sex %></td>
            <td><%= students[i].hobby %></td>
        </tr>
        <% } %>
    </table>
</body>
</html>